package pl.edu.agh.siusbox.service;

import javax.jws.WebService;


import pl.edu.agh.siusbox.schema.spatialplanningbureau.VerifyLocalPlansRequestWrapper;
import pl.edu.agh.siusbox.schema.spatialplanningbureau.VerifyLocalPlansResponseWrapper;
import pl.edu.agh.siusbox.spatialplanningbureau_wsdl.SPBureauPortType;

@WebService(targetNamespace = "http://agh.edu.pl/siusbox/SpatialPlanningBureau.wsdl", 
        portName="SPBureauPort",
        serviceName="SPBureauService", 
        endpointInterface="pl.edu.agh.siusbox.spatialplanningbureau_wsdl.SPBureauPortType")
public class SPBureauPortTypeImpl implements SPBureauPortType{

	@Override
	public VerifyLocalPlansResponseWrapper verifyLocalPlans(
			VerifyLocalPlansRequestWrapper parameters) {

		VerifyLocalPlansResponseWrapper response=new VerifyLocalPlansResponseWrapper();
		response.setApproved(true);
		response.setComments("Spatial planning permission granted");
		response.setLocalPlanExist(true);
	
		return response;
	
	}

}
